﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using MedicalCare.EntityDefinitions.Entities;

namespace MedicalCare.EntityMappings.EntityMaps
{
    public class ScheduleMapping : ClassMap<ScheduleEntity>
    {
        public ScheduleMapping()
        {
            Table("Schedule");
            Id(x => x.Id).Column("Id").Not.Nullable();
            Map(x => x.FamilyId).Column("FamilyId");
            Map(x => x.NurseId).Column("NurseId");
            Map(x => x.StartDT).Column("StartDT");
            Map(x => x.EndDT).Column("EndDT");
            Map(x => x.Status).Column("Status");
        }
    }
}